home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
cool
/
ge_cool.lha
/
GE_COOL2.1
/
misc
/
test
/
test.h
< prev
Wrap
C/C++ Source or Header
|
1992-04-13
|
808b
|
35 lines
//
// Copyright (C) 1991 Texas Instruments Incorporated.
//
// Permission is granted to any individual or institution to use, copy, modify,
// and distribute this software, provided that this complete copyright and
// permission notice is maintained, intact, in all copies and supporting
// documentation.
//
// Texas Instruments Incorporated provides this software "as is" without
// express or implied warranty.
//
extern void test_start(char* name);
extern void test_begin(const char* msg);
extern void test_perform(int success);
extern void test_summary();
#define START(s) test_start(s);
#define TEST(s,p,v) \
{ \
test_begin(s); \
test_perform(p==v); \
}
#define TEST_RUN(s,x,p,v) \
{ \
x; \
test_begin(s); \
test_perform(p==v); \
}
#define SUMMARY() test_summary();